<?php

Route::group([
    'prefix' => 'admin',
    'middleware' =>'auth.admin',
], function () {
    // 首页。
    Route::get('index', [
        'as' => 'AdminIndex',
        'alias' => '首页',
        'uses' => 'Admin\HomeController@showIndex'
    ]);

    // 仪表盘。
    Route::get('dashboard', [
        'as' => 'Dashboard',
        'alias' => '仪表盘',
        'uses' => 'Admin\HomeController@showDashboard'
    ]);
});